package com.liu.InterfaceAnnotation;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class text {
    public static void main(String[] args) {
        ApplicationContext ApplicationContext = new ClassPathXmlApplicationContext("InterfaceAnnotation.xml");
        //被动态代理的是接口，返回的也是接口
        Person personImpl =  ApplicationContext.getBean("PersonImpl",Person.class);
        personImpl.add();
        personImpl.del();
    }
}
